﻿// colored vertex lighting
Shader "Custom/Simple colored lighting" 
{
    // a single color property
    Properties 
    {
        _Color ("Main Color", Color) = (1,.5,.5,1)
        _AmbientColor ("Ambient Color", Color) = (0.5,0.0,0.0,1)
        _MainTex ("Base (RGB)", 2D) =  "white" {}
    }
    // define one subshader
    SubShader 
    {
        Pass 
        {
            Material 
            {
                Diffuse [_Color]
                Ambient [_AmbientColor]
            }
            Lighting On
            SetTexture [_MainTex] 
            {
                combine previous * texture
            }

        }
    }
}
